package com.ailink.basic.loop;

/**
 * Created by Administrator on 2018/10/9
 */
public class BreakLoop {
    public static void main(String[] args) {
        try {
            for (int i = 0; i < 10; i++) {
                throw new Exception();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }


        tag:
        for (int i = 0; i < 10; i++) {
            for (int j = 0; j < 10; j++) {
                break tag;
            }
        }

        //flag

    }
}
